package com.hrt.manage.address.city.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.hrt.base.BaseDaoImpl;
import com.hrt.bean.City;
import com.hrt.manage.address.city.dao.CityDao;
@Repository
public class CityDaoImpl extends BaseDaoImpl<City> implements CityDao{

	@SuppressWarnings("unchecked")
	@Override
	public List<City> getByProvinceCode(String provincecode) {
		String hql = "select city from City city where city.provincecode='"+provincecode+"' and city.isdelete=0";
		return getHibernateTemplate().find(hql);
	}

}
